package com.digitalchina.lxnsy.viewholder;

import android.view.ViewGroup;
import android.widget.TextView;

import com.digitalchina.lxnsy.R;
import com.digitalchina.lxnsy.entity.AnswerVO;
import com.digitalchina.lxnsy.toolkit.FrescoUtil;
import com.facebook.drawee.view.SimpleDraweeView;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.viewholder
 * 创建人：白彦东
 * 创建时间：2016/12/28 18:10
 * 修改备注：
 * ================================================
 */

public class VideoListHolder extends BaseViewHolder<AnswerVO> {

    private SimpleDraweeView sdvVideoImage;
    private TextView tvVideoTitle;
    private TextView tvVideoFrom;
    private TextView tvVideoDate;


    public VideoListHolder(ViewGroup parent) {
        super(parent, R.layout.item_fg_video_list);
        sdvVideoImage = $(R.id.item_fg_video_list_sdv_video);
        tvVideoTitle = $(R.id.item_fg_video_list_tv_title);
        tvVideoFrom = $(R.id.item_fg_video_list_tv_from);
        tvVideoDate = $(R.id.item_fg_video_list_tv_date);
    }

    @Override
    public void setData(AnswerVO data) {
        super.setData(data);
        FrescoUtil.showImageSmall("", sdvVideoImage);
        tvVideoTitle.setText("");
        tvVideoFrom.setText("");
        tvVideoDate.setText("");
    }

}
